POV-Ray : Newsgroups : povray.binaries.scene-files : Req: "Oops!" source code for rails : Re: "Oops!" source code for rails Server Time
19 May 2024 12:43:28 EDT (-0400)
  Re: "Oops!" source code for rails  
From: Eric Freeman
Date: 6 Sep 1998 17:18:26
Message: <35f2ee12.0@news.povray.org>
Peter Popov wrote in message <35db94e2.0@news.povray.org>...
>There was once a picture in p.b.images called "Oops!" by Eric Freeman (if I
>remember correctly, my ng file was killed in a windoze hdd crash...) If you
>Mr. Freeman are out there somewhere reading (Hallo! Alpha 1 calling Eric,
do
>you copy?) could you please tell me how you made those nice rails, sleepers
>(?) and bolts? Sharing some source code would be really nice. This would be
>of great help for me in doing my subway scene, as I've never seen a subway
>(is it just a normal passanger train?)
>
>Thanks in advance.
>
>Regards,
>
>--Peter

Hey,

Glad you liked the rails.  I made them with sPatch.  Enclosed is the POV
code generated by sPatch, but if you want the sPatch file, let me know and
I'll post it.

// RAIL CODE ------------------
#declare rail_tex = texture {
  T_Copper_1B
  pigment { LightSteelBlue/2.5 }
 }
#declare rail = object {
union {
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <0.000, 1.300, 19.999> <0.000, 1.300, 14.000> <0.000, 1.300, 6.000>
<0.000, 1.300, 0.000>
  <-0.136, 1.300, 19.999> <-0.136, 1.300, 14.000> <-0.136, 1.300, 6.000>
<-0.136, 1.300, 0.000>
  <-0.317, 1.277, 19.999> <-0.317, 1.277, 14.000> <-0.317, 1.277, 6.000>
<-0.317, 1.277, 0.000>
  <-0.450, 1.250, 19.999> <-0.450, 1.250, 14.000> <-0.450, 1.250, 6.000>
<-0.450, 1.250, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <0.000, 1.300, 19.999> <0.136, 1.300, 19.999> <0.317, 1.277, 19.999>
<0.450, 1.250, 19.999>
  <0.000, 1.300, 14.000> <0.136, 1.300, 14.000> <0.317, 1.277, 14.000>
<0.450, 1.250, 14.000>
  <0.000, 1.300, 6.000> <0.136, 1.300, 6.000> <0.317, 1.277, 6.000> <0.450,
1.250, 6.000>
  <0.000, 1.300, 0.000> <0.136, 1.300, 0.000> <0.317, 1.277, 0.000> <0.450,
1.250, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <0.450, 1.250, 19.999> <0.471, 1.246, 19.999> <0.493, 1.220, 19.999>
<0.500, 1.200, 19.999>
  <0.450, 1.250, 14.000> <0.471, 1.246, 14.000> <0.493, 1.220, 14.000>
<0.500, 1.200, 14.000>
  <0.450, 1.250, 6.000> <0.471, 1.246, 6.000> <0.493, 1.220, 6.000> <0.500,
1.200, 6.000>
  <0.450, 1.250, 0.000> <0.471, 1.246, 0.000> <0.493, 1.220, 0.000> <0.500,
1.200, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <0.500, 1.200, 19.999> <0.509, 1.172, 19.999> <0.509, 1.128, 19.999>
<0.500, 1.100, 19.999>
  <0.500, 1.200, 14.000> <0.509, 1.172, 14.000> <0.509, 1.128, 14.000>
<0.500, 1.100, 14.000>
  <0.500, 1.200, 6.000> <0.509, 1.172, 6.000> <0.509, 1.128, 6.000> <0.500,
1.100, 6.000>
  <0.500, 1.200, 0.000> <0.509, 1.172, 0.000> <0.509, 1.128, 0.000> <0.500,
1.100, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <0.500, 1.100, 19.999> <0.493, 1.080, 19.999> <0.467, 1.063, 19.999>
<0.450, 1.050, 19.999>
  <0.500, 1.100, 14.000> <0.493, 1.080, 14.000> <0.467, 1.063, 14.000>
<0.450, 1.050, 14.000>
  <0.500, 1.100, 6.000> <0.493, 1.080, 6.000> <0.467, 1.063, 6.000> <0.450,
1.050, 6.000>
  <0.500, 1.100, 0.000> <0.493, 1.080, 0.000> <0.467, 1.063, 0.000> <0.450,
1.050, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <0.450, 1.050, 19.999> <0.407, 1.018, 19.999> <0.338, 0.988, 19.999>
<0.300, 0.950, 19.999>
  <0.450, 1.050, 14.000> <0.407, 1.018, 14.000> <0.338, 0.988, 14.000>
<0.300, 0.950, 14.000>
  <0.450, 1.050, 6.000> <0.407, 1.018, 6.000> <0.338, 0.988, 6.000> <0.300,
0.950, 6.000>
  <0.450, 1.050, 0.000> <0.407, 1.018, 0.000> <0.338, 0.988, 0.000> <0.300,
0.950, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <0.300, 0.950, 19.999> <0.276, 0.926, 19.999> <0.253, 0.883, 19.999>
<0.250, 0.850, 19.999>
  <0.300, 0.950, 14.000> <0.276, 0.926, 14.000> <0.253, 0.883, 14.000>
<0.250, 0.850, 14.000>
  <0.300, 0.950, 6.000> <0.276, 0.926, 6.000> <0.253, 0.883, 6.000> <0.250,
0.850, 6.000>
  <0.300, 0.950, 0.000> <0.276, 0.926, 0.000> <0.253, 0.883, 0.000> <0.250,
0.850, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <0.250, 0.850, 19.999> <0.238, 0.701, 19.999> <0.238, 0.499, 19.999>
<0.250, 0.350, 19.999>
  <0.250, 0.850, 14.000> <0.238, 0.701, 14.000> <0.238, 0.499, 14.000>
<0.250, 0.350, 14.000>
  <0.250, 0.850, 6.000> <0.238, 0.701, 6.000> <0.238, 0.499, 6.000> <0.250,
0.350, 6.000>
  <0.250, 0.850, 0.000> <0.238, 0.701, 0.000> <0.238, 0.499, 0.000> <0.250,
0.350, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <0.250, 0.350, 19.999> <0.253, 0.317, 19.999> <0.269, 0.262, 19.999>
<0.300, 0.250, 19.999>
  <0.250, 0.350, 14.000> <0.253, 0.317, 14.000> <0.269, 0.262, 14.000>
<0.300, 0.250, 14.000>
  <0.250, 0.350, 6.000> <0.253, 0.317, 6.000> <0.269, 0.262, 6.000> <0.300,
0.250, 6.000>
  <0.250, 0.350, 0.000> <0.253, 0.317, 0.000> <0.269, 0.262, 0.000> <0.300,
0.250, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <0.300, 0.250, 19.999> <0.392, 0.213, 19.999> <0.527, 0.215, 19.999>
<0.625, 0.200, 19.999>
  <0.300, 0.250, 14.000> <0.392, 0.213, 14.000> <0.527, 0.215, 14.000>
<0.625, 0.200, 14.000>
  <0.300, 0.250, 6.000> <0.392, 0.213, 6.000> <0.527, 0.215, 6.000> <0.625,
0.200, 6.000>
  <0.300, 0.250, 0.000> <0.392, 0.213, 0.000> <0.527, 0.215, 0.000> <0.625,
0.200, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <0.625, 0.200, 19.999> <0.625, 0.140, 19.999> <0.625, 0.060, 19.999>
<0.625, 0.000, 19.999>
  <0.625, 0.200, 14.000> <0.625, 0.140, 14.000> <0.625, 0.060, 14.000>
<0.625, 0.000, 14.000>
  <0.625, 0.200, 6.000> <0.625, 0.140, 6.000> <0.625, 0.060, 6.000> <0.625,
0.000, 6.000>
  <0.625, 0.200, 0.000> <0.625, 0.140, 0.000> <0.625, 0.060, 0.000> <0.625,
0.000, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <0.625, 0.000, 19.999> <0.250, 0.000, 19.999> <-0.250, 0.000, 19.999>
<-0.625, 0.000, 19.999>
  <0.625, 0.000, 14.000> <0.250, 0.000, 14.000> <-0.250, 0.000, 14.000>
<-0.625, 0.000, 14.000>
  <0.625, 0.000, 6.000> <0.250, 0.000, 6.000> <-0.250, 0.000, 6.000>
<-0.625, 0.000, 6.000>
  <0.625, 0.000, 0.000> <0.250, 0.000, 0.000> <-0.250, 0.000, 0.000>
<-0.625, 0.000, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.625, 0.000, 19.999> <-0.625, 0.060, 19.999> <-0.625, 0.140, 19.999>
<-0.625, 0.200, 19.999>
  <-0.625, 0.000, 14.000> <-0.625, 0.060, 14.000> <-0.625, 0.140, 14.000>
<-0.625, 0.200, 14.000>
  <-0.625, 0.000, 6.000> <-0.625, 0.060, 6.000> <-0.625, 0.140, 6.000>
<-0.625, 0.200, 6.000>
  <-0.625, 0.000, 0.000> <-0.625, 0.060, 0.000> <-0.625, 0.140, 0.000>
<-0.625, 0.200, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.625, 0.200, 19.999> <-0.527, 0.215, 19.999> <-0.392, 0.213, 19.999>
<-0.300, 0.250, 19.999>
  <-0.625, 0.200, 14.000> <-0.527, 0.215, 14.000> <-0.392, 0.213, 14.000>
<-0.300, 0.250, 14.000>
  <-0.625, 0.200, 6.000> <-0.527, 0.215, 6.000> <-0.392, 0.213, 6.000>
<-0.300, 0.250, 6.000>
  <-0.625, 0.200, 0.000> <-0.527, 0.215, 0.000> <-0.392, 0.213, 0.000>
<-0.300, 0.250, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.300, 0.250, 19.999> <-0.269, 0.262, 19.999> <-0.253, 0.317, 19.999>
<-0.250, 0.350, 19.999>
  <-0.300, 0.250, 14.000> <-0.269, 0.262, 14.000> <-0.253, 0.317, 14.000>
<-0.250, 0.350, 14.000>
  <-0.300, 0.250, 6.000> <-0.269, 0.262, 6.000> <-0.253, 0.317, 6.000>
<-0.250, 0.350, 6.000>
  <-0.300, 0.250, 0.000> <-0.269, 0.262, 0.000> <-0.253, 0.317, 0.000>
<-0.250, 0.350, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.250, 0.350, 19.999> <-0.238, 0.499, 19.999> <-0.238, 0.701, 19.999>
<-0.250, 0.850, 19.999>
  <-0.250, 0.350, 14.000> <-0.238, 0.499, 14.000> <-0.238, 0.701, 14.000>
<-0.250, 0.850, 14.000>
  <-0.250, 0.350, 6.000> <-0.238, 0.499, 6.000> <-0.238, 0.701, 6.000>
<-0.250, 0.850, 6.000>
  <-0.250, 0.350, 0.000> <-0.238, 0.499, 0.000> <-0.238, 0.701, 0.000>
<-0.250, 0.850, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.250, 0.850, 19.999> <-0.253, 0.883, 19.999> <-0.276, 0.926, 19.999>
<-0.300, 0.950, 19.999>
  <-0.250, 0.850, 14.000> <-0.253, 0.883, 14.000> <-0.276, 0.926, 14.000>
<-0.300, 0.950, 14.000>
  <-0.250, 0.850, 6.000> <-0.253, 0.883, 6.000> <-0.276, 0.926, 6.000>
<-0.300, 0.950, 6.000>
  <-0.250, 0.850, 0.000> <-0.253, 0.883, 0.000> <-0.276, 0.926, 0.000>
<-0.300, 0.950, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.300, 0.950, 19.999> <-0.338, 0.988, 19.999> <-0.407, 1.018, 19.999>
<-0.450, 1.050, 19.999>
  <-0.300, 0.950, 14.000> <-0.338, 0.988, 14.000> <-0.407, 1.018, 14.000>
<-0.450, 1.050, 14.000>
  <-0.300, 0.950, 6.000> <-0.338, 0.988, 6.000> <-0.407, 1.018, 6.000>
<-0.450, 1.050, 6.000>
  <-0.300, 0.950, 0.000> <-0.338, 0.988, 0.000> <-0.407, 1.018, 0.000>
<-0.450, 1.050, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.450, 1.050, 19.999> <-0.467, 1.063, 19.999> <-0.493, 1.080, 19.999>
<-0.500, 1.100, 19.999>
  <-0.450, 1.050, 14.000> <-0.467, 1.063, 14.000> <-0.493, 1.080, 14.000>
<-0.500, 1.100, 14.000>
  <-0.450, 1.050, 6.000> <-0.467, 1.063, 6.000> <-0.493, 1.080, 6.000>
<-0.500, 1.100, 6.000>
  <-0.450, 1.050, 0.000> <-0.467, 1.063, 0.000> <-0.493, 1.080, 0.000>
<-0.500, 1.100, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.500, 1.100, 19.999> <-0.509, 1.128, 19.999> <-0.509, 1.172, 19.999>
<-0.500, 1.200, 19.999>
  <-0.500, 1.100, 14.000> <-0.509, 1.128, 14.000> <-0.509, 1.172, 14.000>
<-0.500, 1.200, 14.000>
  <-0.500, 1.100, 6.000> <-0.509, 1.128, 6.000> <-0.509, 1.172, 6.000>
<-0.500, 1.200, 6.000>
  <-0.500, 1.100, 0.000> <-0.509, 1.128, 0.000> <-0.509, 1.172, 0.000>
<-0.500, 1.200, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.500, 1.200, 19.999> <-0.493, 1.220, 19.999> <-0.471, 1.246, 19.999>
<-0.450, 1.250, 19.999>
  <-0.500, 1.200, 14.000> <-0.493, 1.220, 14.000> <-0.471, 1.246, 14.000>
<-0.450, 1.250, 14.000>
  <-0.500, 1.200, 6.000> <-0.493, 1.220, 6.000> <-0.471, 1.246, 6.000>
<-0.450, 1.250, 6.000>
  <-0.500, 1.200, 0.000> <-0.493, 1.220, 0.000> <-0.471, 1.246, 0.000>
<-0.450, 1.250, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <0.000, 1.300, 20.000> <0.000, 1.300, 20.000> <0.000, 1.300, 20.000>
<0.000, 1.300, 20.000>
  <-0.136, 1.300, 20.000> <0.000, 1.300, 20.000> <0.000, 1.300, 20.000>
<0.136, 1.300, 20.000>
  <-0.317, 1.277, 20.000> <-0.047, 1.277, 20.000> <0.047, 1.277, 20.000>
<0.317, 1.277, 20.000>
  <-0.450, 1.250, 20.000> <-0.180, 1.250, 20.000> <0.180, 1.250, 20.000>
<0.450, 1.250, 20.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.625, 0.000, 20.000> <-0.625, 0.060, 20.000> <-0.625, 0.140, 20.000>
<-0.625, 0.200, 20.000>
  <-0.250, 0.000, 20.000> <-0.250, 0.060, 20.000> <-0.250, 0.140, 20.000>
<-0.250, 0.200, 20.000>
  <0.250, 0.000, 20.000> <0.250, 0.060, 20.000> <0.250, 0.140, 20.000>
<0.250, 0.200, 20.000>
  <0.625, 0.000, 20.000> <0.625, 0.060, 20.000> <0.625, 0.140, 20.000>
<0.625, 0.200, 20.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.625, 0.000, 20.000> <-0.625, 0.000, 20.000> <-0.625, 0.000, 20.000>
<-0.625, 0.000, 20.000>
  <-0.625, 0.060, 20.000> <-0.250, 0.060, 20.000> <-0.250, 0.060, 20.000>
<-0.250, 0.000, 20.000>
  <-0.625, 0.140, 20.000> <-0.250, 0.080, 20.000> <-0.125, 0.060, 20.000>
<0.250, 0.000, 20.000>
  <-0.625, 0.200, 20.000> <-0.250, 0.140, 20.000> <0.250, 0.060, 20.000>
<0.625, 0.000, 20.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <0.625, 0.000, 20.000> <0.625, 0.000, 20.000> <0.625, 0.000, 20.000>
<0.625, 0.000, 20.000>
  <0.250, 0.060, 20.000> <0.250, 0.120, 20.000> <0.250, 0.120, 20.000>
<0.625, 0.060, 20.000>
  <-0.250, 0.140, 20.000> <0.125, 0.140, 20.000> <0.250, 0.140, 20.000>
<0.625, 0.140, 20.000>
  <-0.625, 0.200, 20.000> <-0.250, 0.200, 20.000> <0.250, 0.200, 20.000>
<0.625, 0.200, 20.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.625, 0.200, 20.000> <-0.527, 0.215, 20.000> <-0.392, 0.213, 20.000>
<-0.300, 0.250, 20.000>
  <-0.250, 0.200, 20.000> <-0.152, 0.215, 20.000> <-0.212, 0.213, 20.000>
<-0.120, 0.250, 20.000>
  <0.250, 0.200, 20.000> <0.152, 0.215, 20.000> <0.212, 0.213, 20.000>
<0.120, 0.250, 20.000>
  <0.625, 0.200, 20.000> <0.527, 0.215, 20.000> <0.392, 0.213, 20.000>
<0.300, 0.250, 20.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.300, 0.250, 20.000> <-0.269, 0.262, 20.000> <-0.253, 0.317, 20.000>
<-0.250, 0.350, 20.000>
  <-0.120, 0.250, 20.000> <-0.089, 0.262, 20.000> <-0.103, 0.317, 20.000>
<-0.100, 0.350, 20.000>
  <0.120, 0.250, 20.000> <0.089, 0.262, 20.000> <0.103, 0.317, 20.000>
<0.100, 0.350, 20.000>
  <0.300, 0.250, 20.000> <0.269, 0.262, 20.000> <0.253, 0.317, 20.000>
<0.250, 0.350, 20.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.250, 0.350, 20.000> <-0.238, 0.499, 20.000> <-0.238, 0.701, 20.000>
<-0.250, 0.850, 20.000>
  <-0.100, 0.350, 20.000> <-0.088, 0.499, 20.000> <-0.088, 0.701, 20.000>
<-0.100, 0.850, 20.000>
  <0.100, 0.350, 20.000> <0.088, 0.499, 20.000> <0.088, 0.701, 20.000>
<0.100, 0.850, 20.000>
  <0.250, 0.350, 20.000> <0.238, 0.499, 20.000> <0.238, 0.701, 20.000>
<0.250, 0.850, 20.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.250, 0.850, 20.000> <-0.253, 0.883, 20.000> <-0.276, 0.926, 20.000>
<-0.300, 0.950, 20.000>
  <-0.100, 0.850, 20.000> <-0.103, 0.883, 20.000> <-0.096, 0.926, 20.000>
<-0.120, 0.950, 20.000>
  <0.100, 0.850, 20.000> <0.103, 0.883, 20.000> <0.096, 0.926, 20.000>
<0.120, 0.950, 20.000>
  <0.250, 0.850, 20.000> <0.253, 0.883, 20.000> <0.276, 0.926, 20.000>
<0.300, 0.950, 20.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.300, 0.950, 20.000> <-0.338, 0.988, 20.000> <-0.407, 1.018, 20.000>
<-0.450, 1.050, 20.000>
  <-0.120, 0.950, 20.000> <-0.158, 0.988, 20.000> <-0.137, 1.018, 20.000>
<-0.180, 1.050, 20.000>
  <0.120, 0.950, 20.000> <0.158, 0.988, 20.000> <0.137, 1.018, 20.000>
<0.180, 1.050, 20.000>
  <0.300, 0.950, 20.000> <0.338, 0.988, 20.000> <0.407, 1.018, 20.000>
<0.450, 1.050, 20.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.450, 1.050, 20.000> <-0.467, 1.063, 20.000> <-0.493, 1.080, 20.000>
<-0.500, 1.100, 20.000>
  <-0.180, 1.050, 20.000> <-0.197, 1.063, 20.000> <-0.193, 1.080, 20.000>
<-0.200, 1.100, 20.000>
  <0.180, 1.050, 20.000> <0.197, 1.063, 20.000> <0.193, 1.080, 20.000>
<0.200, 1.100, 20.000>
  <0.450, 1.050, 20.000> <0.467, 1.063, 20.000> <0.493, 1.080, 20.000>
<0.500, 1.100, 20.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.500, 1.100, 20.000> <-0.509, 1.128, 20.000> <-0.509, 1.172, 20.000>
<-0.500, 1.200, 20.000>
  <-0.200, 1.100, 20.000> <-0.209, 1.128, 20.000> <-0.209, 1.172, 20.000>
<-0.200, 1.200, 20.000>
  <0.200, 1.100, 20.000> <0.209, 1.128, 20.000> <0.209, 1.172, 20.000>
<0.200, 1.200, 20.000>
  <0.500, 1.100, 20.000> <0.509, 1.128, 20.000> <0.509, 1.172, 20.000>
<0.500, 1.200, 20.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.500, 1.200, 20.000> <-0.493, 1.220, 20.000> <-0.471, 1.246, 20.000>
<-0.450, 1.250, 20.000>
  <-0.200, 1.200, 20.000> <-0.193, 1.220, 20.000> <-0.201, 1.246, 20.000>
<-0.180, 1.250, 20.000>
  <0.200, 1.200, 20.000> <0.193, 1.220, 20.000> <0.201, 1.246, 20.000>
<0.180, 1.250, 20.000>
  <0.500, 1.200, 20.000> <0.493, 1.220, 20.000> <0.471, 1.246, 20.000>
<0.450, 1.250, 20.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <0.000, 1.300, 0.000> <0.000, 1.300, 0.000> <0.000, 1.300, 0.000> <0.000,
1.300, 0.000>
  <-0.136, 1.300, 0.000> <0.000, 1.300, 0.000> <0.000, 1.300, 0.000> <0.136,
1.300, 0.000>
  <-0.317, 1.277, 0.000> <-0.047, 1.277, 0.000> <0.047, 1.277, 0.000>
<0.317, 1.277, 0.000>
  <-0.450, 1.250, 0.000> <-0.180, 1.250, 0.000> <0.180, 1.250, 0.000>
<0.450, 1.250, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.625, 0.000, 0.000> <-0.625, 0.060, 0.000> <-0.625, 0.140, 0.000>
<-0.625, 0.200, 0.000>
  <-0.250, 0.000, 0.000> <-0.250, 0.060, 0.000> <-0.250, 0.140, 0.000>
<-0.250, 0.200, 0.000>
  <0.250, 0.000, 0.000> <0.250, 0.060, 0.000> <0.250, 0.140, 0.000> <0.250,
0.200, 0.000>
  <0.625, 0.000, 0.000> <0.625, 0.060, 0.000> <0.625, 0.140, 0.000> <0.625,
0.200, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.625, 0.000, 0.000> <-0.625, 0.000, 0.000> <-0.625, 0.000, 0.000>
<-0.625, 0.000, 0.000>
  <-0.625, 0.060, 0.000> <-0.250, 0.060, 0.000> <-0.250, 0.060, 0.000>
<-0.250, 0.000, 0.000>
  <-0.625, 0.140, 0.000> <-0.250, 0.080, 0.000> <-0.125, 0.060, 0.000>
<0.250, 0.000, 0.000>
  <-0.625, 0.200, 0.000> <-0.250, 0.140, 0.000> <0.250, 0.060, 0.000>
<0.625, 0.000, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <0.625, 0.000, 0.000> <0.625, 0.000, 0.000> <0.625, 0.000, 0.000> <0.625,
0.000, 0.000>
  <0.250, 0.060, 0.000> <0.250, 0.120, 0.000> <0.250, 0.120, 0.000> <0.625,
0.060, 0.000>
  <-0.250, 0.140, 0.000> <0.125, 0.140, 0.000> <0.250, 0.140, 0.000> <0.625,
0.140, 0.000>
  <-0.625, 0.200, 0.000> <-0.250, 0.200, 0.000> <0.250, 0.200, 0.000>
<0.625, 0.200, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.625, 0.200, 0.000> <-0.527, 0.215, 0.000> <-0.392, 0.213, 0.000>
<-0.300, 0.250, 0.000>
  <-0.250, 0.200, 0.000> <-0.152, 0.215, 0.000> <-0.212, 0.213, 0.000>
<-0.120, 0.250, 0.000>
  <0.250, 0.200, 0.000> <0.152, 0.215, 0.000> <0.212, 0.213, 0.000> <0.120,
0.250, 0.000>
  <0.625, 0.200, 0.000> <0.527, 0.215, 0.000> <0.392, 0.213, 0.000> <0.300,
0.250, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.300, 0.250, 0.000> <-0.269, 0.262, 0.000> <-0.253, 0.317, 0.000>
<-0.250, 0.350, 0.000>
  <-0.120, 0.250, 0.000> <-0.089, 0.262, 0.000> <-0.103, 0.317, 0.000>
<-0.100, 0.350, 0.000>
  <0.120, 0.250, 0.000> <0.089, 0.262, 0.000> <0.103, 0.317, 0.000> <0.100,
0.350, 0.000>
  <0.300, 0.250, 0.000> <0.269, 0.262, 0.000> <0.253, 0.317, 0.000> <0.250,
0.350, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.250, 0.350, 0.000> <-0.238, 0.499, 0.000> <-0.238, 0.701, 0.000>
<-0.250, 0.850, 0.000>
  <-0.100, 0.350, 0.000> <-0.088, 0.499, 0.000> <-0.088, 0.701, 0.000>
<-0.100, 0.850, 0.000>
  <0.100, 0.350, 0.000> <0.088, 0.499, 0.000> <0.088, 0.701, 0.000> <0.100,
0.850, 0.000>
  <0.250, 0.350, 0.000> <0.238, 0.499, 0.000> <0.238, 0.701, 0.000> <0.250,
0.850, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.250, 0.850, 0.000> <-0.253, 0.883, 0.000> <-0.276, 0.926, 0.000>
<-0.300, 0.950, 0.000>
  <-0.100, 0.850, 0.000> <-0.103, 0.883, 0.000> <-0.096, 0.926, 0.000>
<-0.120, 0.950, 0.000>
  <0.100, 0.850, 0.000> <0.103, 0.883, 0.000> <0.096, 0.926, 0.000> <0.120,
0.950, 0.000>
  <0.250, 0.850, 0.000> <0.253, 0.883, 0.000> <0.276, 0.926, 0.000> <0.300,
0.950, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.300, 0.950, 0.000> <-0.338, 0.988, 0.000> <-0.407, 1.018, 0.000>
<-0.450, 1.050, 0.000>
  <-0.120, 0.950, 0.000> <-0.158, 0.988, 0.000> <-0.137, 1.018, 0.000>
<-0.180, 1.050, 0.000>
  <0.120, 0.950, 0.000> <0.158, 0.988, 0.000> <0.137, 1.018, 0.000> <0.180,
1.050, 0.000>
  <0.300, 0.950, 0.000> <0.338, 0.988, 0.000> <0.407, 1.018, 0.000> <0.450,
1.050, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.450, 1.050, 0.000> <-0.467, 1.063, 0.000> <-0.493, 1.080, 0.000>
<-0.500, 1.100, 0.000>
  <-0.180, 1.050, 0.000> <-0.197, 1.063, 0.000> <-0.193, 1.080, 0.000>
<-0.200, 1.100, 0.000>
  <0.180, 1.050, 0.000> <0.197, 1.063, 0.000> <0.193, 1.080, 0.000> <0.200,
1.100, 0.000>
  <0.450, 1.050, 0.000> <0.467, 1.063, 0.000> <0.493, 1.080, 0.000> <0.500,
1.100, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.500, 1.100, 0.000> <-0.509, 1.128, 0.000> <-0.509, 1.172, 0.000>
<-0.500, 1.200, 0.000>
  <-0.200, 1.100, 0.000> <-0.209, 1.128, 0.000> <-0.209, 1.172, 0.000>
<-0.200, 1.200, 0.000>
  <0.200, 1.100, 0.000> <0.209, 1.128, 0.000> <0.209, 1.172, 0.000> <0.200,
1.200, 0.000>
  <0.500, 1.100, 0.000> <0.509, 1.128, 0.000> <0.509, 1.172, 0.000> <0.500,
1.200, 0.000>
 }
 bicubic_patch {
  type 1
  flatness 0
  u_steps 3
  v_steps 3
  <-0.500, 1.200, 0.000> <-0.493, 1.220, 0.000> <-0.471, 1.246, 0.000>
<-0.450, 1.250, 0.000>
  <-0.200, 1.200, 0.000> <-0.193, 1.220, 0.000> <-0.201, 1.246, 0.000>
<-0.180, 1.250, 0.000>
  <0.200, 1.200, 0.000> <0.193, 1.220, 0.000> <0.201, 1.246, 0.000> <0.180,
1.250, 0.000>
  <0.500, 1.200, 0.000> <0.493, 1.220, 0.000> <0.471, 1.246, 0.000> <0.450,
1.250, 0.000>
 }
  texture { rail_tex }
}
}
// END RAIL CODE

The spikes are just flattened spheres:
#declare spike = sphere {
  < 0, 0, 0 >
  0.07
  scale <2.5, 1, 2.5 >
  translate < -0.6, tie_y+plate_y+0.07, 0 >
}

Eric

--------------------------------
http://www.geocities.com/SiliconValley/Heights/2354/
http://www.datasync.com/~reba/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.